<%--
  Created by IntelliJ IDEA.
  User: Murali Krishna Yengala
  Date: Jun 6, 2005
  Time: 12:40:03 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html;charset=UTF-8" %>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested"%>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack"%>

<chiptrack:checkLogon sourcePage="purchaseOrders.do"/>
<%@ page import="com.scalar.chiptrack.utils.ConfigManager,
                com.scalar.chiptrack.users.Functionality,
                com.scalar.chiptrack.users.User,
                java.util.ArrayList"%>
<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type="text/css" rel=stylesheet>

<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">

<SCRIPT language="JavaScript">

   function save()
   {
        var errors	= "";
        var li      = document.getElementById( "message" );
        li.style.visibility = "visible";

        var algorithmName = document.finishedGoodsEntryForm.algorithmName.value;
        if( algorithmName == '')
        {
            var ci = document.getElementById("chiptracInfo");
            ci.innerHTML = '';
            var ce = document.getElementById("chiptracErrors");
            ce.innerHTML = '';
            errors = errors+"<li> Please enter the Algorithm";
            li.innerHTML = errors;
            return;
        }
        document.finishedGoodsEntryForm.action='<%=chipTracContext%>/finishedGoodsEntry.do?action=saveAlgorithmName' ;
        document.finishedGoodsEntryForm.submit();
   }

   function closeWindow()
   {
        opener.parent.refresh();
        window.close();
   }

</SCRIPT>

<html:form  action="/finishedGoodsEntry" name="finishedGoodsEntryForm"  type="com.scalar.chiptrack.operations.finishedGoods.forms.FinishedGoodsEntryForm" onsubmit="return save()">

<TABLE cellSpacing=0 cellPadding=0 width="100%">
   <TBODY>
   <TR>
    <TD valign='top' align='center'></TD>
       <!-- from here your body starts -->
       <TABLE width='90%' align='center' border='0'>
            <tr>
                <td colspan=4><font class="NArialL"><font align=left color="FF0000" id=message ></font></td>
            </tr>
            <TR><TD colspan =4 class="NArialL"><chiptrack:messages type="info" styleClass="NArialL" /></TD></TR>
            <tr><td colspan=4 id='chiptracInfo'><chiptrack:info styleClass="NArialL"/></td></tr>
            <tr><td colspan=4 id='chiptracErrors'><chiptrack:errors styleClass="NArialL"/></td></tr>
            <TR>
                <TD colspan="4" bgColor="#993333" width="263" height="16"><FONT class="NArialL" style="color:#ffffff" id="fieldLabel">&nbsp;Add New Algorithm:</FONT></TD>
            </TR>
           <TR>
               <TD colspan='4'>&nbsp;</TD>
           </TR>
            <TR>
               <TD width='50%' colspan='4' align='center'>
                   <input type='text' name="algorithmName" class='txfield' size="20" maxlength="50"/>
               </TD>
           </TR>
           <TR  id="rowId1"><TD colspan="4" ></TD></TR>
           <TR>
               <TD colspan='4'>&nbsp;</TD>
           </TR>
           <TR>
               <TD align="center" colspan='4'>
                   <a href="javascript:save();"><IMG onmouseover="window.status='Click here to Save Algorithms';return true" title="Click here to Save Algorithms" onmouseout="window.status='';return true" height=17 src="<%=chipTracContext%>/jsp/includes/images/save.gif"  width=53 border=0></a>
               </TD>
           </TR>
           <TR>
               <TD colspan="4" align="center">
                   <a href="javascript:closeWindow();"  onMouseOver="window.status='Click here to close this window';return true" title='Click here to close this window'><font class='NArialL'><b>[Close this window]</b></font></a>
               </TD>
           </TR>
       </TABLE>
</html:form>
   </TD>
<!-- till here -->
 </TR>
 </TBODY>
</TABLE>
</BODY>
</HTML>


